package com.hhit.zhgd.domain.excelimport

import cn.afterturn.easypoi.excel.annotation.Excel
import cn.afterturn.easypoi.handler.inter.IExcelDataModel
import cn.afterturn.easypoi.handler.inter.IExcelModel

data class MaterialsSupplyPlanImportParam(
    var rowNum: Int? = null,
    var errorMsg: String? = null,
    @Excel(name = "序号", fixedIndex = 0) var sort: Int? = null,
    @Excel(name = "物料描述", fixedIndex = 1) var description: String? = null,
    @Excel(name = "采购申请数量", fixedIndex = 2) var purchaseNumber: String? = null,
    @Excel(name = "度量单位文本", fixedIndex = 3) var measuringUnit: String? = null,
    @Excel(name = "供应商名称", fixedIndex = 4) var supplierName: String? = null,
    @Excel(name = "供应商联系人", fixedIndex = 5) var supplierContact: String? = null,
    @Excel(name = "供应商联系人电话", fixedIndex = 6) var supplierContactPhone: String? = null,
    @Excel(name = "合同计划交货日期", fixedIndex = 7) var scheduledDeliveryDate: String? = null,
    @Excel(name = "确定交货期", fixedIndex = 8) var determineDeliveryDate: String? = null,
    @Excel(name = "抽检", fixedIndex = 9) var check: String? = null
) : IExcelDataModel, IExcelModel {
    override fun setRowNum(rowNum: Int) {
        this.rowNum = rowNum
    }

    override fun getRowNum(): Int? {
        return rowNum
    }

    override fun getErrorMsg(): String {
        return errorMsg ?: ""
    }

    override fun setErrorMsg(errorMsg: String?) {
        this.errorMsg = errorMsg
    }
}
